//
//  CQLoginView.m
//  HiChat
//
//  Created by dllo on 16/1/15.
//  Copyright © 2016年 wqiong. All rights reserved.
//

#import "CQLoginView.h"



@implementation CQLoginView
- (void)dealloc
{
    [_Lab release];
    [_textf release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}
- (void)create {
    self.Lab = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, self.frame.size.height + 20, self.frame.size.height - 10)];
    self.Lab.backgroundColor = [UIColor grayColor];
    self.Lab.layer.cornerRadius = 10;
    self.Lab.font = [UIFont systemFontOfSize:20.0];
    self.Lab.textAlignment = NSTextAlignmentCenter;
    self.Lab.layer.masksToBounds = YES;
    [self addSubview:self.Lab];
    [_Lab release];
    
    self.textf = [[UITextField alloc] initWithFrame:CGRectMake(self.Lab.frame.origin.x + self.Lab.frame.size.width + 10, self.Lab.frame.origin.y, self.frame.size.width - 40 - self.Lab.frame.size.width, self.Lab.frame.size.height)];
    self.textf.backgroundColor = [UIColor lightGrayColor];
    self.textf.layer.cornerRadius = 10;
    self.textf.font = [UIFont systemFontOfSize:20.0];
    [self addSubview:self.textf];
    [_textf release];
}
@end
